// 1.定义：类就是拥有相同属性和方法的一系列对象的集合
// 2.展开理解：类是一个模具，是从这该类包含的所有具体对象中抽象出来的一个概念，类定义了它所包含的全体对象的静态特征和动态特征

class People {
    name:string;
    age:number;
    addr:string;
    static count:number = 0
    constructor(_name:string,_age:number,_addr:string){
        this.name = _name;
        this.age = _age;
        this.addr = _addr;
        People.count++;
    }
    doEat(){

    }
    doStep(){

    }
}

let p1 = new People("wangwu",23,"白家庄")
let p2 = new People("wangwu",23,"白家庄")
let p3 = new People("wangwu",23,"白家庄")
console.log(People.count);

p1.doEat()

// 静态成员(静态属性+静态方法)

export {}